<template>
	<view>
		<view class="imgContainer" v-for="item in filteredTeamData">
			<image :src="item.imagelink"></image>
		</view>
		<view class="teamInfo">
			<uni-card :title="teamName" v-for="item in filteredTeamData">
				<text class="uni-body">
					ID:{{item.teamID}}\n
					<!-- 				成立:{{teamData.setup}}\n -->
					国家:{{item.country}}\n
					<!-- 					城市:{{teamData.city}}\n -->
					主场:{{item.homeField}}\n
					<!-- 					容纳:{{teamData.contain}}\n -->
					<!-- 					电话:{{teamData.tel}}\n
					邮箱:{{teamData.email}}\n -->
					<!-- 					地址:{{teamData.address}} -->
				</text>
			</uni-card>
		</view>
		<uni-section title="赛程" type="line">
			<view class="content">


				<view class="session" v-for="item in filteredCompetition" key="index">
					<uni-section class="timePiece" :title="item.date" type="line"></uni-section>
					<view v-for="subItem in item.dayGame" key="subIndex">
						<view class="accurantTime">
							{{subItem.time}}
						</view>
						<view class="session1">
							<view class="sessionleft1">
								<view class="left1" @click="clickCountry">
									{{subItem.teama}}
								</view>
								<view class="right1">
									<image :src="subItem.imga" mode="aspectFill"></image>
								</view>
							</view>
							<view class="sessioncenter1">
								{{subItem.score}}
							</view>
							<view class="sessionright1">
								<view class="left2">
									<image :src="subItem.imgb" mode="aspectFill"></image>
								</view>
								<view class="right2" @click="clickCountry">
									{{subItem.teamb}}
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 			<view class="gameInfo" v-for="gInfo in gameInfo">
				<view class="session1">
					<view class="time">
						{{gInfo.time}}
					</view>
					<view class="sessionleft1">
						<view class="left1">
							{{gInfo.teama}}
						</view>
						<view class="left2">
							<image :src="gInfo.teamaimg" mode="aspectFill"></image>
						</view>
					</view>
					<view class="sessioncenter1">
						{{gInfo.score}}
					</view>
					<view class="sessionright1">
						<view class="right1">
							<image :src="gInfo.teambimg" mode="aspectFill"></image>
						</view>
						<view class="right2">
							{{gInfo.teamb}}
						</view>
					</view>
				</view>
			</view> -->
		</uni-section>
	</view>
</template>
<script setup>
	import {
		onMounted,
		ref,
		computed
	} from 'vue';
	import {
		baseUrl
	} from '../../tool/tool';
	const teamData = ref([]);
	const app = getApp();

	onMounted(() => {
		console.log('CountryName是', app.globalData.countryName)
		uni.request({
			url: baseUrl + "/Team/getAllTeam",
			method: "POST",
			success(res) {
				teamData.value = res.data;
				console.log(teamData.value)
			}
		})
	})
	const filteredTeamData = computed(() => {
		return teamData.value.filter(item => item.country === app.globalData.countryName);
	});
	const filteredCompetition = computed(() => {
		return competition.value.map(comp => {
			return {
				date: comp.date,
				dayGame: comp.dayGame.filter(game =>
					game.teama === app.globalData.countryName || game.teamb === app.globalData
					.countryName
				)
			};
		}).filter(comp => comp.dayGame.length > 0);
	});
	// let teamData = ref([{
	// 		url: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
	// 		name: "西班牙",
	// 		setup: "1913",
	// 		country: "西班牙",
	// 		city: "Las Rozas",
	// 		homefield: "伯纳乌球场",
	// 		contain: "85454人",
	// 		tel: "+34 (91) 495 9800",
	// 		email: "rfef@rfef.es",
	// 		address: "Ramón y Cajal"
	// 	}

	// ])

	let gameInfo = ref([{
			time: "06-25 03:00",
			teama: "阿尔巴尼亚",
			teamaimg: "https://sd.qunliao.info/fastdfs3/M00/B5/71/ChOxM1xC2ASAGHFMAAAIKxo_E6w387.png",
			score: "0-1",
			teambimg: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
			teamb: "西班牙"
		},
		{
			time: "07-01 03:00",
			teama: "西班牙",
			teamaimg: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
			score: "4-1",
			teambimg: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2ISASf6dAAAFAPHKXZg941.png",
			teamb: "格鲁吉亚"
		},
	]);
	const competition = ref([{
			date: "2024/6/15",
			dayGame: [{
					time: "3:00",
					teama: "德国",
					teamb: "苏格兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2JGAd79VAAAAyGVvoVQ975.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RGARlXJAAADZRt3Z5E811.png",
					score: "5:1"
				},
				{
					time: "21:00",
					teama: "匈牙利",
					teamb: "瑞士",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/78/ChOxM1xC2JqALrn0AAAAwxNi5qI444.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2TyANIAKAAABeUfO5gM520.png",
					score: "1:3"
				}
			]
		},
		{
			date: "2024/6/16",
			dayGame: [{
					time: "0:00",
					teama: "西班牙",
					teamb: "克罗地亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EOAbUHIAAAOg6JpgzM729.png",
					score: "3:0"
				},
				{
					time: "3:00",
					teama: "意大利",
					teamb: "阿尔巴尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/79/ChOxM1xC2LeASiR_AAABM1z3kEY093.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/71/ChOxM1xC2ASAGHFMAAAIKxo_E6w387.png",
					score: "2:1"
				},
				{
					time: "21:00",
					teama: "波兰",
					teamb: "荷兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PGALY-zAAAAqYWqc08697.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
					score: "1:2"
				},
			]
		},
		{
			date: "2024/6/17",
			dayGame: [{
					time: "0:00",
					teama: "斯洛文尼亚",
					teamb: "丹麦",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2RqAb5iBAAAOyrKrW5w440.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/75/ChOxM1xC2FGAU4XgAAABUo4hnUQ558.png",
					score: "1:1"
				},
				{
					time: "3:00",
					teama: "塞尔维亚",
					teamb: "英格兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/87/ChOxM1xC2iSAWoJLAAANi61d2EA772.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
					score: "0:1"
				},
				{
					time: "21:00",
					teama: "罗马尼亚",
					teamb: "乌克兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2QCAHI77AAAAtuVu0Q0545.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UeAQ_ZRAAAAsB-WszA660.png",
					score: "3:0"
				}
			]
		},
		{
			date: "2024/6/18",
			dayGame: [{
					time: "0:00",
					teama: "比利时",
					teamb: "斯洛伐克",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2CKAJTG3AAAAypTh1A8948.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RmAK60TAAAIMnb4e1Y203.png",
					score: "0:1"
				},
				{
					time: "3:00",
					teama: "奥地利",
					teamb: "法国",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2BSAd33sAAAAwSmUl1c875.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
					score: "0:1"
				}
			]
		},
		{
			date: "2024/6/19",
			dayGame: [{
					time: "0:00",
					teama: "土耳其",
					teamb: "格鲁吉亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UOAAUUEAAAE_nJ2nXk049.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2ISASf6dAAAFAPHKXZg941.png",
					score: "3:1"
				},
				{
					time: "3:00",
					teama: "葡萄牙",
					teamb: "捷克",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PuALvwRAAAK3F_koeE108.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EuAYSDaAAACk9Rvueg747.png",
					score: "2:1"
				},
				{
					time: "21:00",
					teama: "克罗地亚",
					teamb: "阿尔巴尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EOAbUHIAAAOg6JpgzM729.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/71/ChOxM1xC2ASAGHFMAAAIKxo_E6w387.png",
					score: "2：2"
				}
			]
		},
		{
			date: "2024/6/20",
			dayGame: [{
					time: "0:00",
					teama: "德国",
					teamb: "匈牙利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2JGAd79VAAAAyGVvoVQ975.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/78/ChOxM1xC2JqALrn0AAAAwxNi5qI444.png",
					score: "2:0"
				},
				{
					time: "3:00",
					teama: "苏格兰",
					teamb: "瑞士",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RGARlXJAAADZRt3Z5E811.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2TyANIAKAAABeUfO5gM520.png",
					score: "1:1"
				},
				{
					time: "21:00",
					teama: "斯洛文尼亚",
					teamb: "塞尔维亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2RqAb5iBAAAOyrKrW5w440.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/87/ChOxM1xC2iSAWoJLAAANi61d2EA772.png",
					score: "1:1"
				},
			]
		},
		{
			date: "2024/6/21",
			dayGame: [{
					time: "0:00",
					teama: "丹麦",
					teamb: "英格兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/75/ChOxM1xC2FGAU4XgAAABUo4hnUQ558.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
					score: "1:1"
				},
				{
					time: "3:00",
					teama: "西班牙",
					teamb: "意大利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/79/ChOxM1xC2LeASiR_AAABM1z3kEY093.png",
					score: "1:0"
				},
				{
					time: "21:00",
					teama: "斯洛伐克",
					teamb: "乌克兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RmAK60TAAAIMnb4e1Y203.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UeAQ_ZRAAAAsB-WszA660.png",
					score: "1:2"
				}
			]
		},
		{
			date: "2024/6/22",
			dayGame: [{
					time: "0:00",
					teama: "波兰",
					teamb: "奥地利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PGALY-zAAAAqYWqc08697.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2BSAd33sAAAAwSmUl1c875.png",
					score: "1:3"
				},
				{
					time: "3:00",
					teama: "荷兰",
					teamb: "法国",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
					score: "0:0"
				},
				{
					time: "21:00",
					teama: "格鲁吉亚",
					teamb: "捷克",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2ISASf6dAAAFAPHKXZg941.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EuAYSDaAAACk9Rvueg747.png",
					score: "1:1"
				}
			]
		},
		{
			date: "2024/6/23",
			dayGame: [{
					time: "0:00",
					teama: "土耳其",
					teamb: "葡萄牙",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UOAAUUEAAAE_nJ2nXk049.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PuALvwRAAAK3F_koeE108.png",
					score: "0:3"
				},
				{
					time: "3:00",
					teama: "比利时",
					teamb: "罗马尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2CKAJTG3AAAAypTh1A8948.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2QCAHI77AAAAtuVu0Q0545.png",
					score: "2:0"
				}
			]
		},
		{
			date: "2024/6/24",
			dayGame: [{
					time: "3:00",
					teama: "苏格兰",
					teamb: "匈牙利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RGARlXJAAADZRt3Z5E811.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/78/ChOxM1xC2JqALrn0AAAAwxNi5qI444.png",
					score: "1:1"
				},
				{
					time: "3:00",
					teama: "瑞士",
					teamb: "德国",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2TyANIAKAAABeUfO5gM520.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					score: "0:1"
				}
			]
		},
		{
			date: "2024/6/25",
			dayGame: [{
					time: "0:00",
					teama: "阿尔巴尼亚",
					teamb: "西班牙",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/71/ChOxM1xC2ASAGHFMAAAIKxo_E6w387.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					score: "0:1"
				},
				{
					time: "3:00",
					teama: "克罗地亚",
					teamb: "意大利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EOAbUHIAAAOg6JpgzM729.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/79/ChOxM1xC2LeASiR_AAABM1z3kEY093.png",
					score: "1:1"
				}
			]
		},
		{
			date: "2024/6/26",
			dayGame: [{
					time: "0:00",
					teama: "法国",
					teamb: "波兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PGALY-zAAAAqYWqc08697.png",
					score: "1:1"
				},
				{
					time: "0:00",
					teama: "荷兰",
					teamb: "奥地利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2BSAd33sAAAAwSmUl1c875.png",
					score: "2:3"
				},
				{
					time: "3:00",
					teama: "丹麦",
					teamb: "塞尔维亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/75/ChOxM1xC2FGAU4XgAAABUo4hnUQ558.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/87/ChOxM1xC2iSAWoJLAAANi61d2EA772.png",
					score: "0:0"
				},
				{
					time: "3:00",
					teama: "英格兰",
					teamb: "斯洛文尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2RqAb5iBAAAOyrKrW5w440.png",
					score: "0:0"
				}
			]
		},
		{
			date: "2024/6/27",
			dayGame: [{
					time: "0:00",
					teama: "斯洛伐克",
					teamb: "罗马尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RmAK60TAAAIMnb4e1Y203.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2QCAHI77AAAAtuVu0Q0545.png",
					score: "1:1"
				},
				{
					time: "0:00",
					teama: "格鲁吉亚",
					teamb: "葡萄牙",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2ISASf6dAAAFAPHKXZg941.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PuALvwRAAAK3F_koeE108.png",
					score: "2:0"
				},
				{
					time: "0:00",
					teama: "乌克兰",
					teamb: "比利时",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UeAQ_ZRAAAAsB-WszA660.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2CKAJTG3AAAAypTh1A8948.png",
					score: "0:0"
				},
				{
					time: "3:00",
					teama: "捷克",
					teamb: "土耳其",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/74/ChOxM1xC2EuAYSDaAAACk9Rvueg747.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UOAAUUEAAAE_nJ2nXk049.png",
					score: "1:2"
				}
			]
		},
		{
			date: "2024/6/30",
			dayGame: [{
					time: "0:00",
					teama: "瑞士",
					teamb: "意大利",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2TyANIAKAAABeUfO5gM520.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/79/ChOxM1xC2LeASiR_AAABM1z3kEY093.png",
					score: "2:0"
				},
				{
					time: "3:00",
					teama: "德国",
					teamb: "丹麦",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2JGAd79VAAAAyGVvoVQ975.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/75/ChOxM1xC2FGAU4XgAAABUo4hnUQ558.png",
					score: "2:0"
				}
			]
		},
		{
			date: "2024/7/1",
			dayGame: [{
					time: "0:00",
					teama: "英格兰",
					teamb: "斯洛伐克",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7D/ChOxM1xC2RmAK60TAAAIMnb4e1Y203.png",
					score: "1:0"
				},
				{
					time: "3:00",
					teama: "西班牙",
					teamb: "格鲁吉亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2ISASf6dAAAFAPHKXZg941.png",
					score: "4:1"
				}
			]
		},
		{
			date: "2024/7/2",
			dayGame: [{
					time: "0:00",
					teama: "法国",
					teamb: "比利时",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2CKAJTG3AAAAypTh1A8948.png",
					score: "1:0"
				},
				{
					time: "3:00",
					teama: "葡萄牙",
					teamb: "斯洛文尼亚",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PuALvwRAAAK3F_koeE108.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2RqAb5iBAAAOyrKrW5w440.png",
					score: "1:1"
				}
			]
		},
		{
			date: "2024/7/3",
			dayGame: [{
					time: "0:00",
					teama: "罗马尼亚",
					teamb: "荷兰",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2QCAHI77AAAAtuVu0Q0545.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
					score: "0:3"
				},
				{
					time: "3:00",
					teama: "奥地利",
					teamb: "土耳其",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/72/ChOxM1xC2BSAd33sAAAAwSmUl1c875.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UOAAUUEAAAE_nJ2nXk049.png",
					score: "1:2"
				}
			]
		},
		{
			date: "2024/7/6",
			dayGame: [{
					time: "0:00",
					teama: "西班牙",
					teamb: "德国",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2JGAd79VAAAAyGVvoVQ975.png",
					score: "2:1"
				},
				{
					time: "3:00",
					teama: "葡萄牙",
					teamb: "法国",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7C/ChOxM1xC2PuALvwRAAAK3F_koeE108.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
					score: "0:0"
				}
			]
		},
		{
			date: "2024/7/7",
			dayGame: [{
					time: "3:00",
					teama: "荷兰",
					teamb: "土耳其",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2UOAAUUEAAAE_nJ2nXk049.png",
					score: "2:1"
				},
				{
					time: "0:00",
					teama: "英格兰",
					teamb: "瑞士",
					imga: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
					imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/7F/ChOxM1xC2TyANIAKAAABeUfO5gM520.png",
					score: "1:1"
				}
			]
		},
		{
			date: "2024/7/10",
			dayGame: [{
				time: "3:00",
				teama: "西班牙",
				teamb: "法国",
				imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
				imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/77/ChOxM1xC2IKANG6tAAABFW9OqCQ523.png",
				score: "2:1"
			}]
		},
		{
			date: "2024/7/11",
			dayGame: [{
				time: "3:00",
				teama: "荷兰",
				teamb: "英格兰",
				imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7B/ChOxM1xC2N6AEWYMAAABPByVIVM465.png",
				imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
				score: "1:2"
			}]
		},
		{
			date: "2024/7/15",
			dayGame: [{
				time: "3:00",
				teama: "西班牙",
				teamb: "英格兰",
				imga: "https://sd.qunliao.info/fastdfs3/M00/B5/7E/ChOxM1xC2TCAWMemAAAJsy8Pgbg246.png",
				imgb: "https://sd.qunliao.info/fastdfs3/M00/B5/76/ChOxM1xC2G2Acp31AAABNMvdP0U855.png",
				score: ""
			}]
		}
	]);
</script>
<script>
	export default {
		data() {
			return {
				teamName: ""
			}
		},
		onLoad(query) {
			console.log(query);
			this.teamName = query.teamName;
			const countryName = this.teamName;
			uni.$emit('click', countryName);
		},
	}
</script>
<style>
	.imgContainer {
		margin-left: 70rpx;
		width: 600rpx;
		height: 400rpx;
		padding: 0 20rpx;

		image {
			width: 100%;
			height: 100%;
			border-radius: 15rpx;
		}
	}

	.teamInfo {
		margin-top: -50rpx;
	}


	.content {
		width: 690rpx;
		margin-left: 30rpx;
		margin-top: 30rpx;

		.session {
			width: 100%;
			justify-content: space-between;

			/* 左中右元素分布在容器内的起始、中间和末尾位置 */
			.accurantTime {
				font-size: 20rpx;
				margin-left: 40rpx;
				height: 0rpx;
			}

			.session1 {
				background: white;
				height: 120rpx;
				margin-bottom: 30rpx;
				border-radius: 5rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.sessionleft1 {
					flex: 43%;
					margin-right: 10rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					.left1 {
						font-size: 25rpx;
						width: 120rpx;
						margin-left: 40rpx;
					}

					.right1 {
						width: 90rpx;
						height: 60rpx;

						image {
							width: 100%;
							height: 100%;
						}
					}
				}

				.sessioncenter1 {
					flex: 14%;
					text-align: center;
					align-items: center;
				}

				.sessionright1 {
					flex: 43%;
					margin-left: 10rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					.left2 {
						width: 90rpx;
						height: 60rpx;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.right2 {
						font-size: 25rpx;
						width: 120rpx;
					}
				}
			}

			.session2 {
				background: #eee;
				height: 120rpx;
				margin-bottom: 30rpx;
				border-radius: 5rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.sessionleft2 {
					flex: 40%;
					margin-right: 30rpx;
					align-items: center;
				}

				.sessioncenter2 {
					flex: 20%;
					text-align: center;
					align-items: center;
				}

				.sessionright2 {
					flex: 40%;
					margin-left: 30rpx;
					align-items: center;
				}
			}
		}
	}

	.session2 {
		background: #eee;
		height: 120rpx;
		margin-bottom: 30rpx;
		border-radius: 5rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		.sessionleft2 {
			flex: 40%;
			margin-right: 30rpx;
			align-items: center;
		}

		.sessioncenter2 {
			flex: 20%;
			text-align: center;
			align-items: center;
		}

		.sessionright2 {
			flex: 40%;
			margin-left: 30rpx;
			align-items: center;
		}
	}
</style>